package com.alibaba.citrus.ots.sales.plan.api.statistics;

import com.alibaba.citrus.ots.sales.plan.functions.ability.model.SalesPlanStatAbilityRequest;
import com.alibaba.lattice2.epoch.sdk.model.Result;
import com.alibaba.lattice2.epoch.meshflow.model.annotation.MeshFlowService;

/**
 * @author luyi
 * @date 2021/9/25 10:11 下午
 */
@MeshFlowService(apps = {"bc_ots"}, name = "planStatService")
public interface SalesPlanStatService {

    /**
     * 计划汇总
     * @param planId 计划id
     * @return
     */
    Result<Boolean> planCollect(String planId);

    /**
     * 删除计划汇总信息
     * @param planId 计划id
     * @return
     */
    Result<Boolean> deleteStatData(String planId);

    /**
     * 消费消息，触发月度计划汇总
     * @param message 计划id
     * @return
     */
    Result<Boolean> consumePlanCollect(String message);

}
